package com.yfbao.horizon.shardingtable.injection.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yfbao.horizon.shardingtable.injection.entity.User;
import com.yfbao.horizon.shardingtable.injection.mapper.UserMapper;
import com.yfbao.horizon.shardingtable.injection.service.inter.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {

    @Autowired
    private UserMapper userMapper;

    public List<User> getUserListByNameLike(String name){
        return userMapper.getUserListByLikeName(name);
    }
 }

